<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>jQ.toggle</title>
	<script src="http://libs.baidu.com/jquery/1.10.2/jquery.min.js"></script>
	<script type="text/javascript">
		$(document).ready(function () {
			$("button").click(function () {
				$("p").toggle()

			})

		})

	</script>
</head>
<body>
<button type="button">切换</button>
<p>这是一个段落</p>
<p>这是另一个段落.</p>

</body>
</html>